import QtQuick3D
import QtQuick3D.Physics
import QtQuick3D.Helpers

Node{
    id:root
    property CapsuleShape capsuleShape
    property list<Material> materials
    AxisHelper{

    }

    Model
    {
        scale.x:capsuleShape.diameter / 100
        scale.y:capsuleShape.diameter / 100
        scale.z:capsuleShape.diameter / 100
        source:"#Sphere"
        materials: root.materials
        position.y:capsuleShape.height / 2

    }

    Model
    {
        scale.x:capsuleShape.diameter / 100
        scale.y:capsuleShape.height / 100
        scale.z:capsuleShape.diameter / 100
        source:"#Cylinder"
        materials: root.materials
    }

    Model
    {
        scale.x:capsuleShape.diameter / 100
        scale.y:capsuleShape.diameter / 100
        scale.z:capsuleShape.diameter / 100
        source:"#Sphere"
        materials: root.materials
        position.y:-capsuleShape.height / 2
    }
}
